/********************************************************************************
 *      Copyright:  (C) 2020 makun<1394987689@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  mosquitto_pub.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(2020年07月08日)
 *         Author:  makun <1394987689@qq.com>
 *      ChangeLog:  1, Release initial version on "2020年07月08日 22时30分35秒"
 *                 
 ********************************************************************************/

#ifndef __MOSQUITTO_PUB_H
#define __MOSQUITTO_PUB_H

#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <libgen.h>
#include <getopt.h>
#include <mosquitto.h>
#include <stdlib.h>


#include "mosquitto.h"
#include "cJSON.h"
#include "iniparser.h"
#include "dictionary.h"
#include "conf.h"


void sub_conn_callback(struct mosquitto *mosq, void *obj, int rc);
void message_callback(struct mosquitto *mosg, void *userdata,const struct mosquitto_message *message);

void printJson(cJSON * root);
void find_identi_Json(cJSON * root,const char* identifier, char *reval,int reval_size);






#endif
